package cn.tanghom.content.model;

import java.sql.Timestamp;
import java.util.List;

import javax.persistence.Entity;
import javax.persistence.Table;

import org.springframework.data.jpa.domain.AbstractAuditable;
import org.springframework.data.jpa.domain.AbstractPersistable;

import com.codahale.metrics.Metric;

import lombok.Data;

/**
 * 报表，定义时间段，指标集合，从cratedb中读取meter
 * @author Hunteron-cp
 *
 */
@Entity
@Table(name = "t_report",schema="db_bpm")
@Data
public class Report extends AbstractPersistable<Long>{
	
	 private String name;
	 private double value;
	 private Timestamp from;
	 private Timestamp to;
	 
	 //获取报表内容
	 public List<Metric> getReportData(){
		return null;
	 }
}
